<div class="popup_body">
	<div class="popup_head">
		<div class="popup_action">
			<div class="popup_action_link l7" id="popup_close"></div>
		</div>
	</div>
	<div class="popup_content">
		<form name="form" action="<?php echo Yii::app()->createUrl('albums/uploadPhotoPopupGroup', array('group'=>Yii::app()->request->getParam('group'),'path'=>'groups'))?>" method="POST" enctype="multipart/form-data">
			<img id="loading" src="/images/loading.gif" style="display:none;">
			<div class="add_files_fld">
				<div class="c">
					<div class="cc">
						<div class="add_files_fld_txt">перетащите сюда фото для загрузки</div>
						<a href="#" class="green_btn"><i>+</i>Добавить фото</a>
						<label for="fileToUploadPopup"><i>+</i>Добавить фото</label>
						<input id="fileToUploadPopup" type="file" size="45" name="image" class="fileUpload"/>
					</div>
				</div>
			</div>
		</form>	
		<?php foreach($images as $key=>$image){ ?>	
			<div class="img">
				<a href="" onclick="return false;" class="add_attachment">
					<div class="one_image">
						<div class="image_x_wrap hidden"><div class="image_x"></div></div>
						<?php echo $this->material_image($image->album_id, $image->name, '180', 'groups/'. Yii::app()->request->getParam('group') . '/' . $image->album_id); ?>
						<input type="hidden" name="images[]" value="<?php echo $image->id; ?>" class="images" />
					</div>
				</a>
			</div>
		<?php } ?>
	</div>		
</div>